package com.zr.system.mapper;

import java.util.List;
import com.zr.system.domain.SysAnnounce;

/**
 * 移动端通告Mapper接口
 * 
 * @author why
 * @date 2022-10-26
 */
public interface SysAnnounceMapper 
{
    /**
     * 查询移动端通告
     * 
     * @param announceId 移动端通告主键
     * @return 移动端通告
     */
    public SysAnnounce selectSysAnnounceByAnnounceId(Long announceId);

    /**
     * 查询移动端通告列表
     * 
     * @param sysAnnounce 移动端通告
     * @return 移动端通告集合
     */
    public List<SysAnnounce> selectSysAnnounceList(SysAnnounce sysAnnounce);

    /**
     * 新增移动端通告
     * 
     * @param sysAnnounce 移动端通告
     * @return 结果
     */
    public int insertSysAnnounce(SysAnnounce sysAnnounce);

    /**
     * 修改移动端通告
     * 
     * @param sysAnnounce 移动端通告
     * @return 结果
     */
    public int updateSysAnnounce(SysAnnounce sysAnnounce);

    /**
     * 删除移动端通告
     * 
     * @param announceId 移动端通告主键
     * @return 结果
     */
    public int deleteSysAnnounceByAnnounceId(Long announceId);

    /**
     * 批量删除移动端通告
     * 
     * @param announceIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteSysAnnounceByAnnounceIds(Long[] announceIds);

    public SysAnnounce selectLatestAnnounceByRoleId(Long roleId);
}
